Previous Book Contents Book Index Next

Inside Macintosh: 3D Graphics Programming With QuickDraw 3D /
Chapter 14 - Shader Objects / Shader Objects Reference
Shader Objects Routines / Managing Shaders


Q3Shader_GetType

You can use the Q3Shader_GetType function to get the type of a shader object.

TQ3ObjectType Q3Shader_GetType (TQ3ShaderObject shader);
shader
A shader object.
DESCRIPTION
The Q3Shader_GetType function returns, as its function result, the type of the shader object specified by the shader parameter. The types of shader objects currently supported by QuickDraw 3D are defined by these constants:

kQ3ShaderTypeSurface
kQ3ShaderTypeIllumination
If the specified shader object is invalid or is not one of these types, Q3Shader_GetType returns the value kQ3ObjectTypeInvalid.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996